#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

int max(const int a, const int b, const int c)
{
	if (a > b && a > c)
		return a;
	else if (b > a && b > c)
		return b;
	else if (c > a && c > b)
		return c;
	else
		return a;
}
int main()
{
	int a, b, c;
	while (scanf("%d %d %d", &a, &b, &c) != EOF)
	{
		if ((a + b + c) > 2 * max(a, b, c))
		{
			if ((a == b) || (b == c) || (a == c))
			{
				if (a + b + c != 3 * a)
					printf("Isosceles triangle!\n");
				else
				{
					printf("Equilateral triangle!\n");
				}

			}
			else
				printf("Ordinary triangle!\n");
		}
		else
			printf("Not a triangle!\n");
	}
	return 0;
}